#ifndef _MEM_MAP_H_
#define _MEM_MAP_H_

typedef struct _MEM_MAP MEM_MAP;

MEM_MAP * mem_map_create(int port, const char * ip);
void mem_map_destory(MEM_MAP * m);
int mem_map_set(MEM_MAP * m, const char * key, const void * val, int val_len);
int mem_map_get(MEM_MAP * m, const char * key, void * val, int len);
int mem_map_del(MEM_MAP * m, const char * key);

#endif
